{extend name="base/main" /}
{block name="body"}
<form class="layui-form" action="{:url('set/payes_update')}" method="post">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">短信配置</li>
            <li>阿里云key配置</li>
            <li>OSS上传配置</li>
            <li>阿里云直播</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">阿里云短信签名</label>
                        <div class="layui-input-inline">
                            <input type="tel" name="signature" value="{$find.signature}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">阿里云短信模板ID</label>
                        <div class="layui-input-inline">
                            <input type="text" name="templateid" value="{$find.templateid}"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$find.id}">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </div>
            <div class="layui-tab-item">
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 200px">阿里云AccessKeyId</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="accesskeyid" value="{$find.accesskeyid}" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"  style="width: 200px">阿里云AccessKeySecret</label>
                    <div class="layui-input-inline">
                        <input type="text" name="accesskeysecret" value="{$find.accesskeysecret}"  autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$find.id}">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </div>

            <div class="layui-tab-item">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">空间域名 Domain</label>
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{$find.name}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">存储空间名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="spacename" value="{$find.spacename}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">EndPoint（地域节点）</label>
                        <div class="layui-input-inline">
                            <input type="text" name="endpoint" value="{$find.endpoint}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$find.id}">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </div>

            <div class="layui-tab-item">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">推流地址</label>
                        <div class="layui-input-inline">
                            <input type="text" name="address" value="{$find.address}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline" >
                        <label class="layui-form-label" style="width: 200px">播放地址</label>
                        <div class="layui-input-inline">
                            <input type="text" name="playaddress" value="{$find.playaddress}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">推流主key</label>
                        <div class="layui-input-inline">
                            <input type="text" name="mainkey" value="{$find.mainkey}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">播放主key</label>
                        <div class="layui-input-inline">
                            <input type="tel" name="playmainkey" value="{$find.playmainkey}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">直播应用名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="appname" value="{$find.appname}"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">直播录制OSS桶名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="bucketname" value="{$find.bucketname}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label" style="width: 200px">直播录制OssEndpoint</label>
                        <div class="layui-input-inline">
                            <input type="text" name="ossendpoint" value="{$find.ossendpoint}" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="hidden" name="id" value="{$find.id}">
                        <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    layui.use('element', function(){
        var $ = layui.jquery
            ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
        $('.site-demo-active').on('click', function(){
            var othis = $(this), type = othis.data('type');
            active[type] ? active[type].call(this, othis) : '';
        });
    });
</script>
{/block}